package com.yiya.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yiya.bean.SerCompany;
import com.yiya.model.SerCompanyCplex;
import com.yiya.model.SerCompanyCplexModel;
import com.yiya.model.SerCompanyExample;

public interface SerCompanyMapper {
    int countByExample(SerCompanyExample example);

    int deleteByExample(SerCompanyExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(SerCompany record);

    int insertSelective(SerCompany record);

    List<SerCompany> selectByExample(SerCompanyExample example);

    SerCompany selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SerCompany record, @Param("example") SerCompanyExample example);

    int updateByExample(@Param("record") SerCompany record, @Param("example") SerCompanyExample example);

    int updateByPrimaryKeySelective(SerCompany record);

    int updateByPrimaryKey(SerCompany record);
    
    /**
     * 获取维修公司
     * @param model
     * @return
     */
    List<SerCompanyCplex> selectByModel(SerCompanyCplexModel model);
    
    /**
     * 获取维修公司记录总数
     * @param model
     * @return
     */
    int countByModel(SerCompanyCplexModel model);
    
    /**
     * 获取维修公司、无分页
     * @param model
     * @return
     */
    List<SerCompanyCplex> selectSerCompany(SerCompanyCplexModel model);
}